package com.wsjzzcbq.qianyuan.common.job;

import com.wsjzzcbq.qianyuan.common.bean.BasicJob;

/**
 * Task
 *
 * @author wsjz
 * @date 2022/03/22
 */
public interface Task {

    /**
     * 触发job(只执行一次)
     * @param job
     */
    void triggerJob(BasicJob job);

    /**
     * 暂停job
     * @param job
     */
    void pauseJob(BasicJob job);

    /**
     * 恢复job
     * @param job
     */
    void resumeJob(BasicJob job);
}
